package com.woniuxy.exception.changeStateException;

public enum ChangeStateExceptionCode {


    CHANGE_STATE_ALREADY(7001,"修改状态失败,已经是该状态"),
    CHANGE_STATE_DELETE(7002,"修改状态失败,该对象已被删除"),
    CHANGE_HAS_CHILD(7003,"修改状态失败,下面还有子节点");

    Integer code;
    String message;

    ChangeStateExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }
}
